<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>股东信息</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body>
	<form id="cust_cst_corp_shr_form">
            <div class="fieldset1 tabel_col tabel_col_s clearFix noBorder">
                <div class="fieldBox col_50">
                    <div class="label">股东类型</div>
                    <div class="field">
                        <span id="shrTypCd" name="shrTypCd"></span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">股东名称</div>
                    <div class="field">
                        <span id="shrNm" name="shrNm"></span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">证件类型</div>
                    <div class="field">
                       <span id="certTypCd" name="certTypCd"></span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">证件号码</div>
                    <div class="field">
                        <span id="certNo" name="certNo"></span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">出资情况</div>
                    <div class="field" style="width: 100%;">
                    	<span id="cntrAmt" name="cntrAmt"></span>
                    	&nbsp;&nbsp;&nbsp;&nbsp;<span class="requiredSymbol">万元</span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">出资方式</div>
                    <div class="field" style="width: 100%;">
                    	<span id="contrWay" name="contrWay"></span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">出资日期</div>
                    <div class="field" style="width: 100%;">
                    	<span id="contrDt" name="contrDt"></span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">出资占比(%)</div>
                    <div class="field" style="width: 100%;">
                    	<span id="equPropPct" name="equPropPct"></span>
                    </div>
                </div>
                <div class="fieldBox col_50">
                    <div class="label">备注</div>
                    <div class="field" style="width: 100%;">
                    	<span id="shrRemark" name="shrRemark"></span>
                    </div>
                </div>
                <!-- hide data -->
		        <div class="fieldBox col_100" style="display:none;">
		          <div class="field">
		              <input name="ccsId" id="ccsId" type="text" class="ui-textbox" value="${ccsId}">
		          </div>
		        </div>
            </div>
        </form>
        <script>
		$(function() {
		   $("#cust_cst_corp_shr_form").ligerForm({
                validate: true
           });
	        
	        initData();
		});
		
		frameElement.dialog.onCancel = function () {
			frameElement.dialog.close();
		}
		
		function initData(){
			var ccsId = $("#ccsId").val();
	    	if(!ccsId)return;
	    	var _url = '<%=path%>/customer/cstcorpshr/getById.do?isEncrypt=1';
	    	AjaxUtils.ajaxGet(_url, {id:ccsId}, function(msg){
	    		 if(msg.success == 1){
    				 setData(msg.data);//设置数据
    			 }else{
    				 UIUtils.alertError(msg.info);
    			 }
	    	},true);
    	}
		
		//设置页面数据
	     function setData(data){
	    	$("#shrTypCd").html(data.shrTypCdNm);
	    	$("#shrNm").html(data.shrNm);
	    	$("#certTypCd").html(data.certTypCdNm);
	    	$("#certNo").html(data.certNo);
	    	$("#cntrAmt").html(data.cntrAmt);
	    	$("#contrWay").html(data.contrWay);
	    	var date = new Date(data.contrDt);
	    	var dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DD);
	    	$("#contrDt").html(dateStr);
	    	$("#equPropPct").html(data.equPropPct);
	    	$("#shrRemark").html(data.shrRemark);
		}; 
	</script>
</body>
</html>